<?php

namespace app\oa\validate;

use think\Validate;

/**
 * 流程审核
 */
class FlowValidate extends Validate
{

    protected $rule = [
        'id' => 'require',
        'type' => 'require|in:1,2,3,4',
        'content' => 'require',
        'check' => 'require|in:1,2,3',
    ];


    protected $message = [
        'id.require' => '信息未找到',
        'type.require' => '审核类型错误',
        'type.in' => '审核类型错误',
        'content.require' => '审核意见不能为空',
        'check.require' => '审核状态不能为空',
        'check.in' => '审核状态错误',
    ];


    protected $scene = [
        'check' => ['id','type','content','check']
    ];
}